POV-Ray : Newsgroups : povray.general : surreal organic textures - need some help : Re: surreal organic textures - need some help Server Time
5 Nov 2024 03:19:32 EST (-0500)
  Re: surreal organic textures - need some help  
From: David Wallace
Date: 2 Aug 2003 09:25:04
Message: <3f2bbbb0@news.povray.org>
Try this:

#declare texDark = texture {
    pigment { rgb 0.1 }
    normal { ripples 0.2 }
    finish { diffuse 1 ambient 0 }
}

#declare texMid = texture {
    pigment { granite
        color_map {
            [ 0 rgb <0.0, 0.7, 0.7> ]
            [ 1 rgb <0.0, 1.0, 0.0> ]
        }
    }
    normal { graite 0.3 }
    finish {
        reflection { 0.0, 0.3 metallic }
        ambient 0.3 diffuse 0.7
        phong 0.30  phong_size 100  metallic
    }
}

#declare texLight = texture {
    pigment {
        crackle
        turbulence 0.8
        omega 0.75
        color_map {
            [ 0 rgb <1.00, 1.00, 0.95> ]
            [ 1 rgb <1.00, 0.85, 0.70> ]
        }
    }
    normal {
        crackle 0.23
        turbulence 0.8
        omega 0.75
    }
    finish {
        reflection { 0.2, 0.7 }
        ambient 0.8 diffuse 0.2
        specular 0.7 roughness 0.001 metallic 0.4
    }
}

#declare texSkin = texture {
    gradient x
    turbulence 0.2
    octaves 8
    omega 0.7
    texture_map {
        [ 0.100 texDark ]
        [ 0.150 texMid ]
        [ 0.200 texLight ]
        [ 0.300 texLight ]
        [ 0.350 texMid ]
        [ 0.400 texDark ]
        [ 0.675 texDark ]
        [ 0.725 texMid ]
        [ 0.775 texMid ]
        [ 0.825 texDark ]
    }
}

The trick to "glowing" textures is the ambient part of the finish,
especially with radiosity.  If you load the sample scene "radiosity2.pov"
that came with POV-Ray and replace one of the object textures with texLight
or texSkin you will see what I mean.

"Christopher James Huff" <cja### [at] earthlinknet> wrote in message
news:cja### [at] netplexaussieorg...
> In article <web.3f12788565af23e552c52af60@news.povray.org>,
>  "darrenf" <dar### [at] ukonlinenet> wrote:
>
> > I have seen a bryce way of doing  this using a volumetric texture (see
> > http://www.petersharpe.com/Tutorial31.htm), and am not sure how to do
this
> > in povray.
>
> If you are trying for a glowing appearance, look at emitting media.
>
> -- 
> Christopher James Huff <cja### [at] earthlinknet>
> http://home.earthlink.net/~cjameshuff/
> POV-Ray TAG: chr### [at] tagpovrayorg
> http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.